import _fetch from './request.js'

// 企业列表
function getbusinessList(params) {
    return _fetch({
        url: '/enterprise/list',
        method: 'get',
        params
    })
}
// 企业状态设置
function getStatus(data) {
    return _fetch({
        url: '/enterprise/status',
        method: 'post',
        data
    })
}
// 企业添加
function addBusiness(data) {
    return _fetch({
        url: '/enterprise/add',
        method: 'post',
        data
    })
}
// 企业删除
function delBusiness(data) {
    return _fetch({
        url: '/enterprise/remove',
        method: 'post',
        data
    })
}
// 企业编辑
function editBusiness(data) {
    return _fetch({
        url: '/enterprise/edit',
        method: 'post',
        data
    })
}

export {
    getbusinessList,
    getStatus,
    addBusiness,
    delBusiness,
    editBusiness
}